/**
 * Project Name:sc-parent-interface
 * File Name:CustomerService.java
 * Package Name:com.sc.service
 * Date:2018年6月28日下午2:46:32
 * Copyright (c) 2018, bluemobi All Rights Reserved.
 */

package com.sc.service;

import java.util.List;
import java.util.Map;

import com.sc.pojo.Customer;

/**
 * Description: <br/>
 * Date: 2018年6月28日 下午2:46:32 <br/>
 * 
 * @author tianyongxu
 * @version
 * @see
 */
public interface CustomerService {
    /**
     * 查询所有顾客信息
     * */

    List<Customer> selectCustomers();

    // List<Customer> selectCustomers();

    /**
     * 删除指定员工的信息
     */
    int deleteByPrimaryKey(Integer cid);

    /**
     * 查询指定员工的信息
     */
    List<Customer> selectCustomersByEmpId(Integer cid);

    /**
     * 根据客户Id查询客户信息
     */
    Customer selectCustomersByCid(Integer cid);

    /**
     * 先算出来单个客户的概率值
     * */

    /* float selectBuyHouseProbability(Customer customer); */

    /* float selectBuyHouseProbability(Customer customer); */

    /* float selectBuyHouseProbability(Customer customer); */

    /**
     * 根据用户电话查询用户是否存在于客户表中
     */
    List<Customer> selectbyPhone(String cphone);

    float selectBuyHouseProbability(Customer customer);

    /**
     * 修改某个员工的信息
     */
    int updateByPrimaryKeySelective(Customer record);

    /**
     * 根据客户等级排名查询
     */
    List<Customer> selectCustomersByGrand();

    
    /**
     * Q   -start
     * */
    List<Customer> selectCustomerByHouseType(Integer eid);
    
    List<Customer> selectDynamicByInfo (Map<String,Object> map);
    
    List<Customer> selectByEmIdCuInfo(Integer eid);
    
    int insertReport(Map<String, Object> paramMap);
    
    int insert(Customer record);
    
  //通过ID查询该用户微信头像。
    String selectImageByCid(Integer cid);
    
  //ecaharts
    Map<String,Object> selectCuEachrtsBycid(Integer cid);
    
  //添加预约
    int updateByIdApp(Map<String, Object> paramMap);
    
  //查询单个员工所有预约中的客户预约信息
    
    List<Customer>   selectCustomerOrderByEid(Integer eid);/**
     * 模糊查询客户
     * */
    List<Customer> selectCustomersLike(String cname);
    
    Customer selectByCid(Integer cid);
    
    int updateByCustomer(Customer customer);

}
